import React, { Component } from 'react';
class Login extends Component {
  render() {
    return (
      <div>
        <div className="login-box">
          <div class="form-group">
            <label for="exampleInputEmail1">邮箱</label>
            <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email" />
          </div>
          <div class="form-group">
            <label for="exampleInputPassword1">密码</label>
            <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password" />
          </div>
          <div class="form-group">
            <div class="custom-control custom-checkbox">
              <input type="checkbox" class="custom-control-input" id="customControlInline" />
              <label class="custom-control-label" for="customControlInline"><span>记住我</span></label>
            </div>
          </div>
          <button type="submit" onClick={this.props.login} class="btn btn-primary btn-block">登录</button>
        </div>
      </div>
    );
  }
}

export default Login;
